all : syntax syntax.exe ionsaru

COMPILE=g++ -I ../../include

clean :
	rm -f syntax syntax.exe syntax.out* ionsaru

syntax : syntax.cpp
	$(COMPILE) -o syntax syntax.cpp

ionsaru : ionsaru.cpp
	$(COMPILE) -o ionsaru ionsaru.cpp

syntax.exe : syntax.cs
	gmcs -out:syntax.exe -reference:saru-base.dll syntax.cs

check : all
	./syntax > syntax.out.iondrive-glsl
	./syntax.exe > syntax.out.saru-base
	-diff -u syntax.out.saru-base syntax.out.iondrive-glsl
	rm -f syntax.out*
